package com.amumu.drama.common.modules.order.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author sunzhuang
 * @date 2024/10/24 14:24
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */

@Data
@ApiModel("订单设置")
public class OrderConfigReq {


    @ApiModelProperty("订单配置列表")
    private List<SimpleOrderConfigReq> orderConfigList;

    @Data
    @ApiModel("简单的订单设置")
    public static class SimpleOrderConfigReq {
        @ApiModelProperty("键")
        @NotBlank(message = "键值不能为空")
        private String configKey;

        @ApiModelProperty("值")
        private String configValue;

        @ApiModelProperty("备注")
        private String remark;
    }

}
